package com.xiangge.demo;

public class OOPDemo4 {
    public static void main(String[] args) {
        Son son = new Son();
        son.score = 1;
        son.show();
        System.out.println(son.NAME);
    }
}
class Die{
    public int age;
    public static final String NAME = "";
    public void show(){
        System.out.println("父类的show方法");
    }
}
class Son extends Die{
    public int score;
    public void show(){
        System.out.println("子类的show方法");
    }
}
